/*
 * SchedulerMainMenu.java
 *
 * Created on November 7, 2006, 9:32 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.umn.cs5115.scheduler;

import edu.umn.cs5115.scheduler.calendar.Calendar;
import edu.umn.cs5115.scheduler.courselist.CoursesList;
import edu.umn.cs5115.scheduler.entities.Course;
import edu.umn.cs5115.scheduler.entities.CoursePart;
import edu.umn.cs5115.scheduler.framework.DocumentController;
import edu.umn.cs5115.scheduler.framework.KeyValueAdapter;
import edu.umn.cs5115.scheduler.framework.KeyValueCoding;
import edu.umn.cs5115.scheduler.framework.KeyValueObserver;
import edu.umn.cs5115.scheduler.framework.KeyValueObserver.SetMutationType;
import edu.umn.cs5115.scheduler.framework.gui.SelectionController;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Set;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Shell;

import edu.umn.cs5115.scheduler.framework.Document;
import edu.umn.cs5115.scheduler.framework.MainMenu;

/**
 * This application is responsible for creating the customized parts of the 
 * application's main menu.
 * @author grant
 */
public class SchedulerMainMenu extends MainMenu
{
    
    public void createMenuBar(final Shell window, final Document document)
    {
        super.createMenuBar(window, document);
        
        Menu menuBar = window.getMenuBar();
        // add custom menus ("View"/"Schedule"/whatever) here
        
    }
    
    /**
     * Get a customized action name for the given action
     * @param actionName The method name for the action.
     * @return A customized, human-readable string for the action name, or null
     * if no customized action name is provided.
     */
    protected String getActionName(String actionName)
    {
        // For now, just return "Delete Course" in place of "Delete"
        if (actionName.equals("delete"))
            return "Delete Course";
        return super.getActionName(actionName);
    }
}
